]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
switcherPopup: Drop seat state check after grabs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 30 Dec 2025 13:40:06 +0000 (14:40 +0100)
committerMarge Bot <marge-bot@gnome.org>
Mon, 19 Jan 2026 16:28:44 +0000 (16:28 +0000)
Grabs are non-failable now, we do not need to check for
the backend seat actually having been able to perform the
request.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4020>

js/ui/switcherPopup.js

index c1515be45e47d782b2db87ef13229065242bb0f8..b4cb9d57f1571b151d94e51b5b76df7d667e44eb 100644 (file)
@@ -124,11 +124,6 @@ export const SwitcherPopup = GObject.registerClass({
             return false;
 
         const grab = Main.pushModal(this);
-        // We expect at least a keyboard grab here
-        if ((grab.get_seat_state() & Clutter.GrabState.KEYBOARD) === 0) {
-            Main.popModal(grab);
-            return false;
-        }
         this._grab = grab;
         this._haveModal = true;
         this._modifierMask = primaryModifier(mask);
@@ -709,4 +704,3 @@ export function drawArrow(area, side) {
     cr.fill();
     cr.$dispose();
 }
-